package com.action.h5;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.bean.ResponseBean;
import com.pojo.Zixun;
import com.service.WendaService;
import com.service.ZixunService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.Date;
import java.util.List;

/**
 * h5页面查询问答操
 * @author Liao
 */
@RestController
@RequestMapping("/h5")
public class Wendah5Action {
    @Autowired
    WendaService wendaService;

    /**
     * 分页查询问答信息
     * @return
     */
    @RequestMapping("/wendaselectpage")
    public ResponseBean selectpage(Integer page,Integer limit , String keywords){
        IPage iPage =wendaService.selectpage(page, limit,keywords);
        return new ResponseBean(0, iPage.getTotal(), "成功", iPage.getRecords());
    }

}
